//
//  AppleScrollViewData.h
//  TAOVideo
//
//  Created by Lin Eidan on 13-8-20.
//  Copyright (c) 2013年 taomee. All rights reserved.
//

@class VideoObj;

#import <Foundation/Foundation.h>

@interface UserDataBasic : NSObject

#pragma mark - public

+(NSMutableArray *)readObjectArrayForKey:(NSString *)arrayKey;  //获取对象们组成的数组。
+(void)saveThisObjectToArray:(id)object forArrayKey:(NSString *)arrayKey;  //将一个对象存在本地。
+(void)saveThisObjectArray:(NSArray *)objectArray forArrayKey:(NSString *)arrayKey;

//公共
+(void)setObject:(id)object forKey:(NSString *)key;
+(id)getObjectForKey:(NSString*)key;
+(void)removeObjectForkey:(NSString*)key;

#pragma mark - 播放纪录

+(void)addVideoObjToHistory:(VideoObj *)videoObj;
+(float)getHasPlayedDurFromHistoryWith:(VideoObj *)obj;

@end
